'use strict';

module.exports = app => {
  const { STRING, INTEGER, DATE } = app.Sequelize;
  const Article_type = app.model.define('article_type', {
    id: { type: INTEGER, primaryKey: true, autoIncrement: true },
    code: STRING(255),
    name: STRING(255),
    remark: STRING(1000),
    create_date: DATE,
    update_date: DATE,
  }, {
      freezeTableName: true,
      tableName: 'article_type',
      timestamps: false,
    });

  return Article_type;
};
